package day1.克隆;

public class Test {
    public static void main(String[] args)throws Exception {
        Dog d1 = new Dog();
        d1.age=2;
     ;
        Dog d2 = (Dog)d1.clone();
        System.out.println(d2);
    }
}
